OSTYPE ?= `uname -s`

NAME		= lib_athreading_$(OSTYPE).a
LINK		= libAThreading.a
SRCS		= ThreadUnix.cpp	\

OBJS		= $(SRCS:.cpp=.o)

RM		= rm -rf
AR		= ar -r
IND		= ranlib
CXX		= g++
CXXFLAGS	= -W -Wall -Wextra -ansi -pedantic -I. -ggdb -g3
LDFLAGS		= -lpthread -pthread
LN		= ln -sf

all	: $(NAME)

$(NAME) : $(OBJS)
	  $(AR) $(NAME) $(OBJS)
	  $(IND) $(NAME)
	  $(LN) $(NAME) $(LINK)

clean	:
	  $(RM) $(OBJS)

fclean: clean
	$(RM) $(NAME) $(LINK)

re: fclean all
